package cn.jboa.action;

import cn.jboa.entity.Grade;
import cn.jboa.service.GradeService;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
import com.opensymphony.xwork2.interceptor.Interceptor;

public class AddGradeAction extends ActionSupport{
	
    private Grade grade;
    private GradeService service;
    @Override
    public String execute() throws Exception {
    	service.addGrade(grade);
    	return SUCCESS;
    }
    
	public GradeService getService() {
		return service;
	}
	public void setService(GradeService service) {
		this.service = service;
	}
	public Grade getGrade() {
		return grade;
	}
	public void setGrade(Grade grade) {
		this.grade = grade;
	}
	
	

}
